package com.example.design.函数式编程.g查找与判断;

import java.util.stream.IntStream;

public class FindDemo {
    public static void main(String[] args) {
        IntStream intStream = IntStream.of(1, 2, 3, 4, 5, 6, 7);
        System.out.println(intStream.filter(x->(x & 1) == 0).findFirst());
    }
}
